var lists = [{
    p_id: '001',
    p_name: '刘德华',
    p_sex: '男',
    p_age: '36',
    p_time: '2018-12-4',
    p_bingchuanghao: '干嘛发烧流鼻涕',
    p_miaoshi: '头痛、恶心、食欲不振',
    p_zhengzhuang: '红霉素、左氧氟沙星',
}, {
    p_id: '001',
    p_name: '刘德华',
    p_sex: '男',
    p_age: '36',
    p_time: '2018-12-4',
    p_bingchuanghao: '干嘛发烧流鼻涕',
    p_miaoshi: '头痛、恶心、食欲不振',
    p_zhengzhuang: '红霉素、左氧氟沙星',
}, {
    p_id: '001',
    p_name: '刘德华',
    p_sex: '男',
    p_age: '36',
    p_time: '2018-12-4',
    p_bingchuanghao: '干嘛发烧流鼻涕',
    p_miaoshi: '头痛、恶心、食欲不振',
    p_zhengzhuang: '红霉素、左氧氟沙星',
}, {
    p_id: '001',
    p_name: '刘德华',
    p_sex: '男',
    p_age: '36',
    p_time: '2018-12-4',
    p_bingchuanghao: '干嘛发烧流鼻涕',
    p_miaoshi: '头痛、恶心、食欲不振',
    p_zhengzhuang: '红霉素、左氧氟沙星',
}, {
    p_id: '001',
    p_name: '刘德华',
    p_sex: '男',
    p_age: '36',
    p_time: '2018-12-4',
    p_bingchuanghao: '干嘛发烧流鼻涕',
    p_miaoshi: '头痛、恶心、食欲不振',
    p_zhengzhuang: '红霉素、左氧氟沙星',
}, {
    p_id: '001',
    p_name: '刘德华',
    p_sex: '男',
    p_age: '36',
    p_time: '2018-12-4',
    p_bingchuanghao: '干嘛发烧流鼻涕',
    p_miaoshi: '头痛、恶心、食欲不振',
    p_zhengzhuang: '红霉素、左氧氟沙星',
}, {
    p_id: '001',
    p_name: '刘德华',
    p_sex: '男',
    p_age: '36',
    p_time: '2018-12-4',
    p_bingchuanghao: '干嘛发烧流鼻涕',
    p_miaoshi: '头痛、恶心、食欲不振',
    p_zhengzhuang: '红霉素、左氧氟沙星',
}, {
    p_id: '001',
    p_name: '刘德华',
    p_sex: '男',
    p_age: '36',
    p_time: '2018-12-4',
    p_bingchuanghao: '干嘛发烧流鼻涕',
    p_miaoshi: '头痛、恶心、食欲不振',
    p_zhengzhuang: '红霉素、左氧氟沙星',
}, {
    p_id: '001',
    p_name: '刘德华',
    p_sex: '男',
    p_age: '36',
    p_time: '2018-12-4',
    p_bingchuanghao: '干嘛发烧流鼻涕',
    p_miaoshi: '头痛、恶心、食欲不振',
    p_zhengzhuang: '红霉素、左氧氟沙星',
}, {
    p_id: '001',
    p_name: '刘德华',
    p_sex: '男',
    p_age: '36',
    p_time: '2018-12-4',
    p_bingchuanghao: '干嘛发烧流鼻涕',
    p_miaoshi: '头痛、恶心、食欲不振',
    p_zhengzhuang: '红霉素、左氧氟沙星',
}]
var otable = document.getElementsByTagName('table')[0];
for (var i = 0; i < lists.length; i++) {
    var otr = document.createElement('tr');
    otr.innerHTML += '<td><input type="checkbox" name="" id=""></td><td>' + lists[i].p_id + '</td><td>' + lists[i].p_name + '</td><td>' + lists[i].p_sex + '</td><td>' + lists[i].p_age + '</td><td>' + lists[i].p_time + '</td><td>' + lists[i].p_bingchuanghao + '</td><td>' + lists[i].p_miaoshi + '</td><td>' + lists[i].p_zhengzhuang + '</td><td><a href="problem_solving.html">解答问题</a></td>';
    otable.appendChild(otr);
}